package common.props;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class ProjProps {

	public static final String WIND_DATA_URL = "network.windfileurl";
	public static final String DATA_REFRESH_TIME = "network.refreshtime";
	public static final String PROXY_URL = "network.proxy.url";
	public static final String PROXY_PORT = "network.proxy.port";
	public static final String PROXY_USER = "network.proxy.user";
	public static final String PROXY_PWD = "network.proxy.pwd";
	public static final String PROXY_POPUP = "network.proxy.popup_us_pw";
	public static final String LOG_LEVEL = "debug.level";
	

	public static String getProp(String aProp) throws IOException {
		String retVal = null;
		Properties defaultProps = new Properties();

		FileInputStream in = new FileInputStream("windProperties.properties");
		defaultProps.load(in);
		in.close();

		if (defaultProps.containsKey(aProp))
			retVal = defaultProps.getProperty(aProp);

		return retVal;
	}

}
